package com.qfjy.zhudongdong;

/**
 * @author : Z-Star
 * @version : 1.0
 * @date : 2022/9/13 18:55
 */

public class OctalObserver extends Observer{

    public OctalObserver(Subject subject){
        this.subject = subject;
        this.subject.attach(this);
    }

    @Override
    public void update() {
        System.out.println( "八进制 String: "
                + Integer.toOctalString( subject.getState() ) );
    }
}
